#include "cubeBody.h"

using namespace sde;

CubeBody::CubeBody(std::string _type, std::string _name, Object* _object) :
    Body(_type,_name,_object) {
}

btCollisionShape* CubeBody::makeCollisionShape() {
    Vector3 cubeSize = boost::any_cast<Vector3>(object->getVar("scale",Vector3(0.5,0.5,0.5)));
    return new btBoxShape(PhysicsServer::VectorToBulletVector(cubeSize));
}
